package com.cloudsigns.factorymanager2.produce.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;

public class ProduceDailyReportAdapter extends BaseAdapter {
    private Context context;

    public ProduceDailyReportAdapter(Context context) {
        this.context = context;
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View view, ViewGroup viewGroup) {
        ViewHolder holder;
        if (null == view) {
            view = LayoutInflater.from(context).inflate(R.layout.item_produce_daily_report, null);
            holder = new ViewHolder();
            holder.tv_engineering_name = view.findViewById(R.id.tv_engineering_name);
            holder.tv_product_name = view.findViewById(R.id.tv_product_name);
            holder.tv_workpart_name = view.findViewById(R.id.tv_workpart_name);
            holder.tv_plan = view.findViewById(R.id.tv_plan);
            holder.tv_dispatch = view.findViewById(R.id.tv_dispatch);
            holder.tv_today = view.findViewById(R.id.tv_today);
            holder.tv_executive_people = view.findViewById(R.id.tv_executive_people);

            view.setTag(holder);
        } else {
            holder = (ViewHolder) view.getTag();
        }
        return view;
    }

    static class ViewHolder {
        TextView tv_engineering_name;
        TextView tv_product_name;
        TextView tv_workpart_name;
        TextView tv_plan;
        TextView tv_dispatch;
        TextView tv_today;
        TextView tv_executive_people;
    }
}
